package com.example.data.datasource.remote;


import com.example.domain.entity.Post;
import com.example.domain.result.Result;

import java.util.List;

import retrofit2.Call;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface IJsonPlaceHolderService {

    @GET("posts")
    public Call<List<Post>> getAllPosts();

    @POST("posts/{id}")
    public Call<Post> getPostById(@Path("id") int id);

}
